From 9ceed79cf32c896f8a998399bf1b296506b2cd4a Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Tue, 8 Apr 2025 03:08:19 +0000
Subject: 로그인 및 미들웨어 처리. 구조 변경
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/[lng]/evcp/(evcp)/system/layout.tsx | 75 +++++++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)
 create mode 100644 app/[lng]/evcp/(evcp)/system/layout.tsx

(limited to 'app/[lng]/evcp/(evcp)/system/layout.tsx')

diff --git a/app/[lng]/evcp/(evcp)/system/layout.tsx b/app/[lng]/evcp/(evcp)/system/layout.tsx
new file mode 100644
index 00000000..62f3e845
--- /dev/null
+++ b/app/[lng]/evcp/(evcp)/system/layout.tsx
@@ -0,0 +1,75 @@
+import { Metadata } from "next"
+
+import { Separator } from "@/components/ui/separator"
+import { SidebarNav } from "@/components/layout/sidebar-nav"
+
+export const metadata: Metadata = {
+  title: "System Setting",
+  // description: "Advanced form example using react-hook-form and Zod.",
+}
+
+
+interface SettingsLayoutProps {
+  children: React.ReactNode
+  params: { lng: string }
+}
+
+export default async function SettingsLayout({
+  children,
+  params,
+}: {
+  children: React.ReactNode
+  params: { lng: string }
+}) {
+  const resolvedParams = await params
+  const lng = resolvedParams.lng
+
+
+  const sidebarNavItems = [
+
+    {
+      title: "SHI Users",
+      href: `/${lng}/evcp/system`,
+    },
+    {
+      title: "Roles",
+      href: `/${lng}/evcp/system/roles`,
+    },
+    {
+      title: "Permissions",
+      href: `/${lng}/evcp/system/permissions`,
+    },
+    {
+      title: "Vendor Users",
+      href: `/${lng}/evcp/system/admin-users`,
+    },
+  
+  ]
+  
+
+  return (
+    <>
+      <div className="container py-6">
+        <section className="overflow-hidden rounded-[0.5rem] border bg-background shadow">
+          <div className="hidden space-y-6 p-10 pb-16 md:block">
+            <div className="space-y-0.5">
+              <h2 className="text-2xl font-bold tracking-tight">시스템 설정</h2>
+              <p className="text-muted-foreground">
+                사용자, 롤, 접근 권한을 관리하세요.
+              </p>
+            </div>
+            <Separator className="my-6" />
+            <div className="flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0">
+              <aside className="-mx-4 lg:w-1/5">
+                <SidebarNav items={sidebarNavItems} />
+              </aside>
+              <div className="flex-1 ">{children}</div>
+            </div>
+          </div>
+        </section>
+      </div>
+
+
+    </>
+  )
+}
-- 
cgit v1.2.3

